package com.renwei.yunlong.activity.news;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.renwei.yunlong.R;
import com.renwei.yunlong.base.BaseActivity;
import com.renwei.yunlong.utils.CommonUtils;
import com.zyf.fwms.commonlibrary.utils.StatusBarUtil;

public class CustomServiceInfoActivity extends BaseActivity {
    private ImageView csIcon;
    private TextView csName, csFunctionName, csFunctionText, tvTitle;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_service_info);
        StatusBarUtil.setColor(this, CommonUtils.getColor(this, R.color.title_color), 0);
        initView();

    }

    private void initView() {
        tvTitle = findViewById(R.id.tv_title);
        findViewById(R.id.tv_right).setVisibility(View.GONE);
        findViewById(R.id.iv_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();

            }
        });
        csIcon = findViewById(R.id.cs_icon);
        csName = findViewById(R.id.cs_name);
        csFunctionName = findViewById(R.id.cs_function_name);
        csFunctionText = findViewById(R.id.cs_function_text);
        csIcon.setImageResource(R.mipmap.icon_header_default);
        csName.setText(getResources().getText(R.string.custom_service));
        tvTitle.setText("客服详情");
        csFunctionName.setText("功能介绍:");
        csFunctionText.setText("这是云呐IT交互服务台为您提供的服务功能，您可以在云呐客服中学习云呐的使用技巧，或者直接上手体验，使用过程中有任何疑问，只需给我发送消息，就会有专业人士为您解答。");
    }

    public static void OpenActivity(Context context) {
        Intent intent = new Intent(context, CustomServiceInfoActivity.class);
        context.startActivity(intent);
    }
}
